<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html>
<head>
<title>我要验车</title>
<link href="<%=request.getContextPath()%>/bootstrap/css/style.css"
	rel="stylesheet" type="text/css" />
<script src="<%=request.getContextPath()%>/jquery/jquery-1.10.2.min.js"></script>

<body>
	<form method="post" id="fm">
		<div style="padding-top: 34px; padding-left: 50px;">
			<div
				style="font-size: 24px; color: #513435; margin-bottom: 10px; line-height: 24px;">我的车辆信息</div>
			<img src="images/hx.png" />
			<div
				style="font-size: 18px; color: #513435; margin-bottom: 10px; line-height: 24px;">
				<img src="images/rm.png"> 马连洼
			</div>
			<div
				style="font-size: 18px; color: #513435; margin-bottom: 10px; line-height: 24px;">
				<img src="images/rx.png"> 17777777777
			</div>
		</div>
		<div
			style="width: 1198px; border: 1px solid #e6ddcf; margin: 0 auto; margin-top: 20px; margin-bottom: 40px; background: #FFF; overflow: hidden;">
			<div class="rightbar FL">
				<div
					style="padding-left: 50px; overflow: auto; width: 94%; height: 90%;">
					<c:forEach items="${list}" var="myCheckCar">
						<dl class="wddkcx FL"
							style="background: url(images/wddk.png) no-repeat">
							<dt>车辆信息</dt>
							<dd>
								<table class="wddk"> 
									<tr>
										<td class="tdtit1">车牌号</td>
										<td class="tdtit2"><font
											style="width: 55%; font-size: 26px; color: #0000FF;">${myCheckCar.plateNo}</font></td>
									</tr>
									<tr>
										<td class="tdtit1">车辆类型</td>
										<td class="tdtit2">
											<font style="width: 55%; font-size: 26px; color: #FF0000;">
												<c:if test="${myCheckCar.vehicleType == '1'}">大型货车</c:if>
												<c:if test="${myCheckCar.vehicleType == '2'}">小型货车</c:if>
												<c:if test="${myCheckCar.vehicleType == '3'}">小型客车</c:if>
											</font>
										</td>
									</tr>
									<tr>
										<td class="tdtit1">行使证所有人:</td>
										<td class="tdtit2"><font
											style="width: 55%; font-size: 26px; color: #33FF00;">${myCheckCar.owner}</font></td>
									</tr>
									<tr>
										<td class="tdtit1">车辆识别代码:</td>
										<td class="tdtit2"><font
											style="width: 55%; font-size: 26px; color: #000011;">${myCheckCar.vin}</font></td>
									</tr>
									<tr>
										<td class="tdtit1">登记时间:</td>
										<td class="tdtit2">
											<font style="width: 55%; font-size: 26px; color: #FF9966;">
												<c:if test="${myCheckCar.registerDate == 'a'}">6年以内</c:if>
												<c:if test="${myCheckCar.registerDate == 'b'}">6至10年</c:if>
												<c:if test="${myCheckCar.registerDate == 'c'}">10年以上</c:if>
											</font>
										</td>
									</tr>
									<tr>
										<td class="tdtit1">验车状态:</td>
										<td class="tdtit2"><c:if
												test="${myCheckCar.isSuccess == 1}">
												<font style="width: 55%; font-size: 26px; color: #FF9966;">已完成</font>
											</c:if> <c:if
												test="${myCheckCar.isSuccess == 0 && myCheckCar.isValid == 0}">
												<input type="button" value="前去验车"
													style="width: 150px; height: 30px;  color: red; line-height: 30px; border: none 0px; font-size: 20px; cursor: pointer;"
													onclick="CheckCar('${myCheckCar.vehicleId}|${myCheckCar.plateNo}');" />
											</c:if> <c:if
												test="${myCheckCar.isSuccess == 0 && myCheckCar.isValid == 1}">
												<font style="width: 55%; font-size: 26px; color: #FF9966;">不可验车</font>
											</c:if></td>
									</tr>
								</table>
							</dd>
						</dl>
					</c:forEach>
					<dl class="wddkcx FL">
						<dd>
							<table class="wddk">
								<tr>
									<td style="padding: 15px;">
									<img src="images/sfz03.png" id="checkCarAdd" width="300px" /></td>
								</tr>
							</table>
						</dd>
					</dl>
				</div>
			</div>
		</div>
	</form>
	<script type="text/javascript">
		$(document).on("click", "#checkCarAdd", function() {
				window.location.href = "checkCarAddPre";
		})
		
		function CheckCar(oparams){
			 var params = oparams.split("|");
			 window.location.href = "checkCarPre?vehicleId="+params[0]+"&plateNo="+params[1];
		}
	</script>
</body>
</html>